package com.swufe.catchme;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "Start";
    Button btn1;
    Button btn2;
    Button btn3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btn1=findViewById(R.id.start1);
        btn2=findViewById(R.id.start2);
        btn3=findViewById(R.id.start3);

        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent Start =new Intent(MainActivity.this,Start.class);
                Start.putExtra("code",1);
                startActivityForResult(Start,1);
            }
        });
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent Start =new Intent(MainActivity.this,Start.class);
                Start.putExtra("code",2);
                startActivityForResult(Start,2);
            }
        });
        btn3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent Start =new Intent(MainActivity.this,Start.class);
                Start.putExtra("code",3);
                startActivityForResult(Start,3);
            }
        });

    }




}